import pymysql
conn=pymysql.connect(host="211.103.136.244",port=7061,user="student",password="iHRM_student_2021",database="test_db",charset="utf8")
cursor=conn.cursor()
cursor.execute("select * from t_book;")
res=cursor.fetchone()
print(res)
cursor.close()
conn.close()


